<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>商品信息</title>

    <!--data table-->
    <link rel="stylesheet" href="js/data-tables/DT_bootstrap.css" />

    <link href="css/style.css" rel="stylesheet">
    <link href="css/style-responsive.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
  <!--  <script src="js/html5shiv.js"></script>-->
    <!--  <script src="js/respond.min.js"></script>-->
    <![endif]-->
</head>


<body class="sticky-header">

<section>
    <div th:replace="commons :: #left"></div>
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div th:replace="commons :: #search"></div>
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                商品
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">主页</a>
                </li>
                <li class="active">行政管理</li>
                <li class="active">未报销商品信息</li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            <span class="tools pull-right">
                        <a href="javascript:;" class="fa fa-chevron-down"></a>
                        <a href="javascript:;" class="fa fa-times"></a>
                     </span>
                        </header>
                        <div class="panel-body">
                            <div class="adv-table editable-table ">
                                <div class="clearfix">
                                </div>
                                <div class="space15"></div>
                                <table class="table table-striped table-hover table-bordered" id="editable-sample">
                                    <thead>
                                    <tr>
                                        <th>商品编号</th>
                                        <th>商品名字</th>
                                        <th>商品单价</th>
                                        <th>商品数量</th>
                                        <th>商品总价</th>
                                        <th>购买日期</th>
                                        <th>购买者编号</th>
                                        <th>状态</th>
                                        <span th:if="${session.user.id!=1}"><th>操作</th></span>
                                        <span th:if="${session.user.id==1}"><th>操作</th></span>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:each="o:${list}" align="center">
                                        <td th:text="${o.offId}"></td>
                                        <td th:text="${o.itemName}"></td>
                                        <td th:text="${o.itemPrice}"></td>
                                        <td th:text="${o.itemCount}"></td>
                                        <td th:text="${o.itemTotalprice}"></td>
                                        <td th:text="${#dates.format(o.purchase,'yyyy-MM-dd  ')}"></td>
                                        <td th:text="${o.eId}"></td>
                                        <td th:text="${o.isBx==1?'已报销':'未报销'}"></td>
                                        <span th:if="${session.has5==false}"><td><a th:href="@{off_delete(offId=${o.offId})}">取消申请</a></td></span>
                                        <span th:if="${session.has5==true}"><td><a th:href="@{off_update(offId=${o.offId})}">报销</a></td></span>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            2020 &copy; AdminEx by ThemeBucket </a>
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/modernizr.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>

<!--data table-->
<script type="text/javascript" src="js/data-tables/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/data-tables/DT_bootstrap.js"></script>

<!--common scripts for all pages-->
<script src="js/scripts.js"></script>

<!--script for editable table-->
<script src="js/editable-table.js"></script>

<!-- END JAVASCRIPTS -->
<script>
    jQuery(document).ready(function() {
        EditableTable.init();
    });
</script>

</body>
</html>
